package com.pth.model;

public class Log {

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((address == null) ? 0 : address.hashCode());
		result = prime * result + id;
		result = prime * result + ((ip == null) ? 0 : ip.hashCode());
		result = prime * result + totalnum;
		result = prime * result
				+ ((visitime == null) ? 0 : visitime.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Log other = (Log) obj;
		if (address == null) {
			if (other.address != null)
				return false;
		} else if (!address.equals(other.address))
			return false;
		if (id != other.id)
			return false;
		if (ip == null) {
			if (other.ip != null)
				return false;
		} else if (!ip.equals(other.ip))
			return false;
		if (totalnum != other.totalnum)
			return false;
		if (visitime == null) {
			if (other.visitime != null)
				return false;
		} else if (!visitime.equals(other.visitime))
			return false;
		return true;
	}

	public Log() {
		super();
	}

	private int id;
	
	private int totalnum;
	
	
	private String ip;
	
	private String visitime;
	
	private String address;

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getTotalnum() {
		return totalnum;
	}

	public void setTotalnum(int totalnum) {
		this.totalnum = totalnum;
	}


	public String getVisitime() {
		return visitime;
	}

	public void setVisitime(String visitime) {
		this.visitime = visitime;
	}

	public void setIp(String ip) {
		this.ip = ip;
	}

	public String getIp() {
		return ip;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public String getAddress() {
		return address;
	}


	
	
	
}
